//
//  ZYCTeaLeaveRecordRootCell.h
//  ZDSC
//
//  Created by 张威 on 2021/11/9.
//

#import <UIKit/UIKit.h>
@class ZYCTeaLeaveRecordRootModel;
NS_ASSUME_NONNULL_BEGIN


@protocol ZYCTeaLeaveRecordRootCellDelegate <NSObject>

@optional
- (void)teaLeaveRecordRootCellDidRevoke:(NSString *)teacherLeaveId;

@end


typedef NS_ENUM(NSInteger, ZYCTeaLeaveRecordRootCellType) {
    ZYCTeaLeaveRecordRootCellTypeSend  = 0,//我提交的
    ZYCTeaLeaveRecordRootCellTypeRcv // 我收到的
};

@interface ZYCTeaLeaveRecordRootCell : UITableViewCell

@property (nonatomic, weak) id <ZYCTeaLeaveRecordRootCellDelegate> delegate;
@property (nonatomic, strong) ZYCTeaLeaveRecordRootModel *model;
@property (nonatomic, assign) ZYCTeaLeaveRecordRootCellType type;



+ (instancetype)TeaLeaveRecordRootCellWithType:(ZYCTeaLeaveRecordRootCellType)type TableView:(UITableView *)tableView;
@end

NS_ASSUME_NONNULL_END
